<div class="<?php echo $form1 ?>">
<?php if(isset($autherr)) echo $autherr; ?>
<form action = '<? echo $_SERVER["SCRIPT_NAME"]; ?>' method='post'>
    <div>
        <label>Логин:&nbsp;&nbsp;&nbsp;</label>
        <input type = 'text' name = 'onlog' /><br />
        <label>Пароль: </label>
        <input type = 'password' name = 'sapa' /><br />
        <input type = 'submit' name = 'log' value = 'Войти' />
    </div>
</form>
</div>
<div class="<?php echo $form2 ?>">
    Добро пожаловать,&nbsp; <?php echo $name; ?>
    <form action = '<? echo $_SERVER["SCRIPT_NAME"]; ?>' method='post'>
		<div><input type = 'submit' name = 'logout' value = 'Выйти' /></div>
    </form><br />
	<a href="<?php echo $addr; ?>/add.php?type=post" title="Добавить статью" onmouseout="ChangeImg('addnews','<?php echo $addr.'/template/'.$tpl; ?>/images/add_news.png')" onmouseover="ChangeImg('addnews','<?php echo $addr.'/template/'.$tpl; ?>/images/add_news_h.png')"><img src="<?php echo $addr.'/template/'.$tpl; ?>/images/add_news.png" alt="addnews" name="addnews" width="24" height="24"/></a>
	<a href="<?php echo $addr; ?>/add.php?type=track" title="Добавить трек" onmouseout="ChangeImg('addtrack','<?php echo $addr.'/template/'.$tpl; ?>/images/add_track.png')" onmouseover="ChangeImg('addtrack','<?php echo $addr.'/template/'.$tpl; ?>/images/add_track_h.png')"><img src="<?php echo $addr.'/template/'.$tpl; ?>/images/add_track.png" alt="addtrack" name="addtrack" width="24" height="24"/></a>
	<a href="<?php echo $addr; ?>/add.php?type=category" title="Добавить категорию" onmouseout="ChangeImg('addcat','<?php echo $addr.'/template/'.$tpl; ?>/images/add_cat.png')" onmouseover="ChangeImg('addcat','<?php echo $addr.'/template/'.$tpl; ?>/images/add_cat_h.png')"><img src="<?php echo $addr.'/template/'.$tpl; ?>/images/add_cat.png" alt="addcat" name="addcat" width="24" height="24"/></a>
</div>
